package ${map.basePackage}.dto;

import java.util.Date;
import ${curd.boPath};
<#list allFields as item>
	<#if item.otherBo>
import ${item.fieldType};
	</#if>
</#list>
import lombok.Getter;
import lombok.Setter;

/** 
 * ${curd.name} Dto
 */
@Getter
@Setter
public class ${map.boName}Dto
{
	private Long id; // 主标识
	<#list allFields as item>
	private ${item.fieldTypeSort} ${item.fieldName}; //${item.showName!item.fieldName}
    </#list>
	
	//无参构建方法
	public ${map.boName}Dto(){}

	//通过bo构建
	public ${map.boName}Dto(${map.boName} bo)
	{
		this.setId(bo.getId());
	<#list allFields as item>
		this.set${item.fieldName?cap_first}(bo.get${item.fieldName?cap_first}()); //${item.showName!item.fieldName}
    </#list>
	}

}
